﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~masterurl/custom.master" Inherits="Kiiro.SiteDefinition.ProjectPages.DisplayTask, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="CustomFieldCollection" Src="~/_controltemplates/Kiiro/CustomFieldCollection.ascx" %>
<%@ Register TagPrefix="v2" TagName="AttachmentControl" Src="~/_controltemplates/Kiiro/AttachmentControl.ascx" %>
<%@ Register TagPrefix="v2" TagName="TeamMemberCollection" Src="~/_controltemplates/Kiiro/TeamMemberCollection.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
    $(InitTeamMemberCollection);
    $(InitAttachments);
    $(InitWorkItems);
  </script>

  <asp:Panel ID="pnlActionBar" runat="server" CssClass="actionbar">
    <div class="wrap-has-tabs">
      <p class="left">
        <asp:HyperLink ID="lnkBack" runat="server" CssClass="icon-back" />
      </p>
      <ul class="right">
        <li class="borderless">
          <asp:LinkButton ID="btnNewTask" runat="server" Text="New Task" OnClick="btnNewTask_Click" /></li>
        <li>
          <asp:LinkButton ID="btnEditTask" runat="server" Text="Edit This Task" OnClick="btnEditTask_Click" /></li>
        <li>
          <asp:LinkButton ID="btnDeleteTask" runat="server" Text="Delete Task" OnClick="btnDeleteTask_Click" /></li>
      </ul>
    </div>
  </asp:Panel>
  <div class="focus">
    <div class="wrap">
      <div class="work-display task">
        <h2>
          <asp:Label ID="lblTitle" runat="server" /></h2>
        <dl runat="server" id="SubTaskRow">
          <dt>Location in Project Plan</dt>
          <dd>
            <asp:Label ID="lblSubTask" runat="server" /></dd>
        </dl>
        <dl>
          <dt>Description</dt>
          <dd>
            <asp:Label ID="lblDescription" runat="server" /></dd>
        </dl>
      </div>
    </div>
  </div>
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Task Settings</h2>
              </div>
              <div class="panel-content">
                <div class="settings single-column">
                  <asp:Panel ID="pnlStartDate" runat="server" CssClass="row">
                    <dl>
                      <dt>Start Date</dt>
                      <dd>
                        <asp:Label ID="lblStartDate" runat="server" /></dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlEndDate" runat="server" CssClass="row">
                    <dl>
                      <dt>End Date</dt>
                      <dd>
                        <asp:Label ID="lblEndDate" runat="server" /></dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlAssignedTo" runat="server" CssClass="row borderless">
                    <dl>
                      <dt>Assigned To</dt>
                      <dd>
                        <v2:TeamMemberCollection id="teamMemberList" runat="server" /></dd>
                    </dl>
                  </asp:Panel>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Status Settings</h2>
              </div>
              <div class="panel-content">
                <div class="settings single-column">
                  <div class="status-wrap">
                    <input type="hidden" id="hidWorkItemId" runat="server" class="jq_workItemId" />
                    <div class="row">
                      <dl class="status-details">
                        <dt>Status Message</dt>
                        <dd>
                          <asp:TextBox ID="txtStatusMessage" runat="server" Rows="3" TextMode="MultiLine" CssClass="jq_status-textarea" />
                        </dd>
                        <dd>
                          <asp:Label ID="lblStatusNoteMessage" runat="server" CssClass="validation-message" />
                        </dd>
                      </dl>
                    </div>
                    <div class="row">
                      <dl class="status-progress">
                        <dt>How Complete Is This</dt>
                        <dd>
                          <span class="percentage"><span class="jq_percentage">
                            <asp:Literal ID="litPercentComplete" runat="server" /></span>%</span> <span class="slider"></span>
                        </dd>
                      </dl>
                    </div>
                    <div class="row">
                      <dl class="status-progress">
                        <dt>Estimated Time (in
                          <asp:Label ID="lblTimeUnit" runat="server" />)</dt>
                        <dd>
                          <asp:Label ID="lblAssignedWork" runat="server" /></dd>
                      </dl>
                    </div>
                    <div class="row borderless">
                      <div class="status-button">
                        <input type="image" style="float: left" src="/_layouts/images/Kiiro/button-save-disabled.png" id="btnSaveWorkItem" name="button" class="jq_button-save"
                          disabled="disabled" />
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <asp:Panel ID="pnlAttachmentSettings" runat="server" CssClass="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Attachment Settings</h2>
              </div>
              <div class="panel-content">
                <div class="settings single-column">
                  <asp:Panel ID="pnlAttachments" runat="server" CssClass="row borderless">
                    <v2:AttachmentControl id="attachmentControl" runat="server" />
                  </asp:Panel>
                </div>
              </div>
            </div>
          </div>
        </asp:Panel>
        <v2:CustomFieldCollection id="v2CustomFieldCollection" runat="server" />
      </div>
    </div>
  </div>
</asp:Content>
